package com.syh.jn.scm.domain.supplier.event;

import com.syh.core.ddd.domain.DomainEvent;
import com.syh.jn.scm.domain.supplier.entity.stock.StockSpill;

/**
 * 报溢事件
 */
public class StockOtherInBillEvent extends DomainEvent<StockSpill> {

  public static final String STOCK_OTHER_IN_BILL_CONFIRM_STATUS = "stockOtherInBillConfirmStatus";

  //确认
  public static StockOtherInBillEvent buildStockOtherInBillConfirmStatus(Object[] values) {
    StockOtherInBillEvent stockSpillEvent = new StockOtherInBillEvent();
    stockSpillEvent.eventName = STOCK_OTHER_IN_BILL_CONFIRM_STATUS;
    stockSpillEvent.values = values;
    return stockSpillEvent;
  }

  public static final String STOCK_OTHER_IN_BILL_CANCEL_CONFIRM_STATUS = "stockOtherInBillCancelConfirmStatus";

  //取消确认
  public static StockOtherInBillEvent buildStockOtherInBillCancelConfirmStatus(Object[] values) {
    StockOtherInBillEvent stockSpillEvent = new StockOtherInBillEvent();
    stockSpillEvent.eventName = STOCK_OTHER_IN_BILL_CANCEL_CONFIRM_STATUS;
    stockSpillEvent.values = values;
    return stockSpillEvent;
  }
}
